<template>
    <div id="other">
        <v-details :detailData="inputData" :inputConfig="inputConfig"></v-details>
    </div>
</template>

<script>
    import details from "commons/Detail";
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        name: "other",
        mixins: [baseMixin],
        props: {
            inputData: {
                type: Object
            }
        },
        data() {
            return {
                inputConfig: [
                    [
                        {
                            type: "input",
                            label: this.$t('out.orderkey'),
                            props: "orderkey",
                        },
                        {
                            type: "select",
                            label: this.$t('out.ohtype'),
                            props: "ohtype",
                            options: this.getOptions("querycodeLkup/ORDHNDTYPE")
                        },
                        {
                            type: "input",
                            label: this.$t('out.batchflag'),
                            props: "batchflag"
                        },
                        {
                            type: "input",
                            label: this.$t('common.note'),
                            props: "notes"
                        },
                        {
                            type: "input",
                            label: this.$t('out.notes2'),
                            props: "notes2"
                        },
                    ],
                    [
                        {
                            type: "select",
                            label: this.$t('out.shiptogether'),
                            props: "shiptogether",
                            options: this.getOptions("querycodeLkup/YESNO")
                        },
                        {
                            type: "input",
                            label: this.$t('out.sortationlocation'),
                            props: "sortationlocation"
                        },
                        {
                            type: "input",
                            label: this.$t('out.packinglocation'),
                            props: "packinglocation"
                        },
                    ],
                    [
                        {
                            type: "select",
                            label: this.$t('out.orderbreak'),
                            props: "orderbreak",
                            options: this.getOptions("querycodeLkup/YESNO")
                        },
                        {
                            type: "select",
                            label: this.$t('out.picklistreportid'),
                            props: "picklistreportid",
                            options: this.getOptions("queryReportidDropDown/1")
                        },
                        {
                            type: "select",
                            label: this.$t('out.packinglistreportid'),
                            props: "packinglistreportid",
                            options: this.getOptions("queryReportidDropDown/2")
                        },
                        {
                            type: "checkbox",
                            label: this.$t('out.enablepacking'),
                            props: "enablepacking"
                        },
                        {
                            type: "checkbox",
                            label: this.$t('out.packinglocation1'),
                            props: "allowoverpick"
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: "UDF1",
                            props: "susr1"
                        },
                        {
                            type: "input",
                            label: "UDF2",
                            props: "susr2"
                        },
                        {
                            type: "input",
                            label: "UDF3",
                            props: "susr3"
                        },
                        {
                            type: "input",
                            label: "UDF4",
                            props: "susr4"
                        },
                        {
                            type: "input",
                            label: "UDF5",
                            props: "susr5"
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('out.referencetype'),
                            props: "referencetype"
                        },
                        {
                            type: "input",
                            label: this.$t('out.referencedocument'),
                            props: "referencedocument"
                        },
                        {
                            type: "input",
                            label: this.$t('out.referencelocation'),
                            props: "referencelocation"
                        },
                        {
                            type: "input",
                            label: this.$t('out.bolnumber'),
                            props: "bolnumber"
                        },
                        {
                            type: "select",
                            label: this.$t('out.bolprinted'),
                            props: "bolprinted",
                            options: this.getOptions("querycodeLkup/YESNO")
                        },
                        {
                            type: "input",
                            label: this.$t('out.masterbolnumber'),
                            props: "masterbolnumber"
                        },
                    ]
                ]
            };
        },
        methods: {},
        mounted() {
        },
        components: {
            "v-details": details
        }
    };
</script>

<style scoped>
</style>

